package com.example.hw_demo.util;

import lombok.Data;

/**
 * 响应数据封装类
 */
@Data
public class Result<T> {
    private int code;//状态码
    private String message;//消息
    private T data;//数据

    public Result(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Result() {
    }
}
